package com.bj58.groupbuy.action.service;

import java.util.List;
import com.bj58.groupbuy.action.model.UserSubMailVo;
import com.bj58.groupbuy.service.IBaseService;
import com.bj58.groupbuy.wf.page.Paginate;

public interface UserSubMailService  extends IBaseService<UserSubMailVo> {

	
	/**取出所有正常的订阅（状态为1）
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public List<UserSubMailVo>  getAllToSendList ()throws Exception;
	
	
	/**取出该用户的所有订阅
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public List<UserSubMailVo>  getListByUserId (int userId)throws Exception;
	
	
	/**分页查询 订阅
	 * @param pageIndex
	 * @param pageSize
	 * @param where
	 * @return
	 * @throws Exception
	 */
	public Paginate<UserSubMailVo> getSubListByPage (int pageIndex, int pageSize ,String where) throws Exception;


	
	/**更新订阅
	 * @param vo
	 * @return
	 * @throws Exception
	 */
	public int updateVo(UserSubMailVo  vo) throws Exception;
	
	
	/**根据ID查找
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public UserSubMailVo findOneById(int id) throws Exception;
}
